package com.realestate.model;

import java.io.Serializable;
import javax.persistence.*;

import java.util.Date;
import java.util.Set;


/**
 * The persistent class for the brtb_category database table.
 * 
 */
@Entity
@Table(name="brtb_category")
public class BrtbCategory implements Serializable {
	private static final long serialVersionUID = 1L;

	private Long id;

	private String categoryCode;

	private String categoryName;

	private Date makeDate;

	private String recordStatus;

	private Set<BrtbProduct> brtbProducts;

    public BrtbCategory() {
    }

    @Id
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name="category_code")
	public String getCategoryCode() {
		return this.categoryCode;
	}

	public void setCategoryCode(String categoryCode) {
		this.categoryCode = categoryCode;
	}

	@Column(name="category_name")
	public String getCategoryName() {
		return this.categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

	@Column(name="make_date")
	public Date getMakeDate() {
		return this.makeDate;
	}

	public void setMakeDate(Date makeDate) {
		this.makeDate = makeDate;
	}

	@Column(name="record_status")
	public String getRecordStatus() {
		return this.recordStatus;
	}

	public void setRecordStatus(String recordStatus) {
		this.recordStatus = recordStatus;
	}

	@OneToMany(mappedBy="brtbCategory")
	public Set<BrtbProduct> getBrtbProducts() {
		return this.brtbProducts;
	}

	public void setBrtbProducts(Set<BrtbProduct> brtbProducts) {
		this.brtbProducts = brtbProducts;
	}
}